{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "2b31cdeb",
   "metadata": {},
   "outputs": [],
   "source": [
    "def func1(size):\n",
    "    '''square'''\n",
    "    return size * size\n",
    "\n",
    "\n",
    "def func2(size):\n",
    "    '''hexagon'''\n",
    "    return (2 * size + 1) * 2 + (2 * size + 2) * (size - 1)\n",
    "\n",
    "\n",
    "def func3(size):\n",
    "    '''heavy_square'''\n",
    "    return size * (3 * size - 2)\n",
    "\n",
    "\n",
    "def func4(size):\n",
    "    '''heavy_hexagon'''\n",
    "    return (4 * size + 1) * 2 + size * (size + 1) + (4 * size + 3) * (size - 1)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "a71ed568",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "64\n",
      "70\n",
      "65\n",
      "68\n"
     ]
    }
   ],
   "source": [
    "print(func1(8))\n",
    "print(func2(5))\n",
    "print(func3(5))\n",
    "print(func4(3)) # hexagon"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "qiskit_env",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.13.2"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
